@extends('layout.master')

@section('content-header')
    <h1>Manajemen User</h1>
    <ol class="breadcrumb">
        <li><a href="/"><i class="fa fa-dashboard"></i> Dashboard</a></li>
        <li><a href="{{ URL::route('users.index') }}"><i class="fa fa-user"></i> Manajemen User</a></li>
        <li class="active"><i class="fa fa-plus-square"></i> Tambah</li>
    </ol>
@stop

@section('content')
<div class="row">
    <div class="col-xs-12">
        <div class="box">
            <div class="box-body table-responsive">
				{{ Form::open(array('route'=>array('users.store'), 'method'=>'POST', 'class'=>'form-horizontal', 'role'=>'form')) }}
					{{Form::hidden('user_id', Auth::user()->id)}}
					<div class="form-group {{ $errors->has('nama') ?  'has-error' : '' }}">
						<label class="col-sm-2 control-label">Nama</label>
						<div class="col-sm-10">
							{{Form::text('nama', null, array('class'=>'form-control'))}}
						</div>
					</div>
					<div class="form-group {{ $errors->has('email') ?  'has-error' : '' }}">
						<label class="col-sm-2 control-label">Email</label>
						<div class="col-sm-10">
							{{Form::text('email', null, array('class'=>'form-control'))}}
						</div>
					</div>
					<div class="form-group {{ $errors->has('username') ?  'has-error' : '' }}">
						<label class="col-sm-2 control-label">Username</label>
						<div class="col-sm-10">
							{{Form::text('username', null, array('class'=>'form-control'))}}
						</div>
					</div>
					<div class="form-group {{ $errors->has('password') ?  'has-error' : '' }}">
						<label class="col-sm-2 control-label">Password</label>
						<div class="col-sm-10">
							{{Form::password('password', array('class'=>'form-control'))}}
						</div>
					</div>
					<div class="form-group {{ $errors->has('verify_password') ?  'has-error' : '' }}">
						<label class="col-sm-2 control-label">Verify Password</label>
						<div class="col-sm-10">
							{{Form::password('verify_password', array('class'=>'form-control'))}}
						</div>
					</div>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							{{ HTML::decode(link_to_route('users.index', '<i class="fa fa-rotate-left"></i> Kembali', null, array('class'=>'btn btn-primary'))) }}
							{{ HTML::decode(Form::button('<i class="fa fa-refresh"></i> Reset', array('class'=>'btn btn-success','type'=>'reset'))) }}
							{{ HTML::decode(Form::button('<i class="fa fa-floppy-o"></i> Save', array('class'=>'btn btn-primary','type'=>'submit'))) }}
						</div>
					</div>
				{{ Form::close() }}
            </div><!-- /.box-body -->
        </div><!-- /.box -->
    </div>
</div>
@stop

@section('javascript')
<script type="text/javascript">
    $(function() {
    });
</script>
@stop